package view;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;

import java.awt.Color;

import javax.swing.JLabel;
import javax.swing.JButton;
import javax.swing.JTextField;
import javax.swing.ImageIcon;
import javax.swing.SwingConstants;

import java.awt.Font;
import java.awt.event.ActionListener;

import javax.swing.JEditorPane;

public class AcceptOrRejectGui extends JFrame {

	private JPanel contentPane;

	
	private JButton btnMainMenu = null;
	
	private JButton btnRejectButton = null;
	
	private JButton btnAcceptButton = null;
	
	
	private JLabel lblNameCust = null;
	
	private JLabel lblIDCust = null; 
	
	/**
	 * Launch the application.
	 */



	/**
	 * Create the frame.
	 */
	public AcceptOrRejectGui(String describC) {
		getContentPane().setBackground(new Color(178, 34, 34));
		setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
		setBounds(500, 200, 450, 300);
		getContentPane().setLayout(null);
		
		JLabel lblDescribeTheCampaign = new JLabel(describC);
		lblDescribeTheCampaign.setBounds(10, 157, 345, 59);
		getContentPane().add(lblDescribeTheCampaign);
		
		btnMainMenu = new JButton("Main menu");
		btnMainMenu.setBounds(345, 0, 89, 23);
		getContentPane().add(btnMainMenu);
		
		btnRejectButton = new JButton("Reject");
		btnRejectButton.setBounds(0, 227, 217, 35);
		getContentPane().add(btnRejectButton);
		
		btnAcceptButton = new JButton("Accept");
		btnAcceptButton.setBounds(217, 227, 217, 35);
		getContentPane().add(btnAcceptButton);
		
		JLabel lblInAction = new JLabel("IN ACTION...");
		lblInAction.setHorizontalAlignment(SwingConstants.CENTER);
		lblInAction.setForeground(new Color(255, 255, 255));
		lblInAction.setFont(new Font("Traditional Arabic", Font.ITALIC, 22));
		lblInAction.setBounds(35, 4, 299, 74);
		getContentPane().add(lblInAction);
		
		JLabel lblDescribeOfCampaign = new JLabel("Describe of Campaign:");
		lblDescribeOfCampaign.setFont(new Font("Tahoma", Font.BOLD, 17));
		lblDescribeOfCampaign.setBounds(10, 123, 207, 23);
		getContentPane().add(lblDescribeOfCampaign);
		
		 lblNameCust = new JLabel("Customer Name: Liran Schwartz");
		 lblNameCust.setFont(new Font("SimSun-ExtB", Font.BOLD, 17));
		 lblNameCust.setBounds(10, 78, 299, 23);
	     getContentPane().add(lblNameCust);
		
		 lblIDCust = new JLabel("Customer ID: 200463479");
		 lblIDCust.setFont(new Font("SimSun-ExtB", Font.BOLD, 17));
		 lblIDCust.setBounds(10, 100, 299, 23);
		getContentPane().add(lblIDCust);
	//	setContentPane(contentPane);
		setVisible(true);
		
	}
	
	public void setLblNameCust(String text) {
		this.lblNameCust.setText("Customer Name: "+text);
	}
	
	public void setLblIDCust(String text) {
		this.lblIDCust.setText("Customer ID: "+text);
	}
	
	public void addMainMenubtnAC(ActionListener I)
	{
		btnMainMenu.addActionListener(I);
	}
	public void addAcceptBtnAC(ActionListener I)
	{
		btnAcceptButton.addActionListener(I);
	}
	public void addRejectBtnAC(ActionListener I)
	{
		btnRejectButton.addActionListener(I);
	}
	
}
